/*
 * Copyright (C) 2017-2017 SonarSource SA
 * All rights reserved
 * mailto:info AT sonarsource DOT com
 */
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import CCDSystem from './components/clone/CCDSystem';
import './style.css';

window.registerExtension('example/code_clone', options => {

  const { el } = options;

    render(
    <CCDSystem
    project={options.component}
    />, el
);

  return () => unmountComponentAtNode(el);
});
